package com.zh.work.entity.trans;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

@ApiModel("代理商分润实体信息")
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("agent_trans")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class AgentTransEntity extends Model<AgentTransEntity> {

  private static final long serialVersionUID = 6495999054071007486L;

  @ApiModelProperty(value = "主键", name = "id")
  @TableId(value = "id", type = IdType.AUTO)
  private Long id;
  @ApiModelProperty(value = "交易日期", name = "transDate")
  private String transDate;
  @ApiModelProperty(value = "交易时间", name = "transTime")
  private String transTime;
  @ApiModelProperty(value = "商户编号", name = "merchNo")
  @TableField(value = "merchno")
  private String merchNo;
  @ApiModelProperty(value = "商户名称", name = "merchName")
  private String merchName;
  @ApiModelProperty(value = "代理商编号(4位地区代码+6位顺序号)", name = "agentNo")
  @TableField(value = "agentno")
  private String agentNo;
  @ApiModelProperty(value = "代理商名称", name = "agentName")
  private String agentName;
  @ApiModelProperty(value = "交易类型", name = "typeMemo")
  private String typeMemo;
  @ApiModelProperty(value = "参考号", name = "refno")
  @TableField(value = "refno")
  private String refno;
  @ApiModelProperty(value = "交易金额", name = "amount")
  private Float amount;
  @ApiModelProperty(value = "与平台的分成比例(范围:0-100)", name = "divide")
  private Integer divide;
  @ApiModelProperty(value = "总手续费", name = "totalFee")
  private Float totalFee;
  @ApiModelProperty(value = "渠道手续费", name = "channelFee")
  private Float channelFee;
  @ApiModelProperty(value = "代理商成本价", name = "costFee")
  private Float costFee;
  @ApiModelProperty(value = "代理商总手续费", name = "totalAgentFee")
  private Float totalAgentFee;
  @ApiModelProperty(value = "代理商手续费", name = "agentFee")
  private Float agentFee;
  @ApiModelProperty(value = "状态(0-交易中 1-成功 2-强制成功 3-强制失败)", name = "transStatus")
  private Integer transStatus;
  @ApiModelProperty(value = "商户清算状态(1-未清算 2-中清算 3-已清算)", name = "liquidStatus")
  private Integer liquidStatus;
  @ApiModelProperty(value = "商户清算日期", name = "liquidDate")
  private String liquidDate;
  @ApiModelProperty(value = "提现手续费", name = "payFee")
  private Float payFee;
  @ApiModelProperty(value = "机构号", name = "branchNo")
  @TableField(value = "branchno")
  private String branchNo;
  @ApiModelProperty(value = "机构名称", name = "branchName")
  private String branchName;
  @ApiModelProperty(value = "清算日期", name = "settleDate")
  private String settleDate;
  @ApiModelProperty(value = "代理商级别", name = "agentLevel")
  private Integer agentLevel;
  @ApiModelProperty(value = "代理商T+0分润", name = "t0AgentFee")
  private Float t0AgentFee;
  @ApiModelProperty(value = "分润类别(1-银行卡 2-二维码)", name = "divideType")
  private Integer divideType;
  @ApiModelProperty(value = "分润提现状态 1-未提现 2-已提现", name = "extractStatus")
  private Integer extractStatus;



}
